﻿using RAP.Framework.Libary.Utils;
using System.ComponentModel;
using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element
{
	/// <summary>
	/// 一般文本节点
	/// </summary>
	[Description ( "一般文本节点" )]
    [TagHandler( typeof( SimpleTextHandler ) )]
    public class SimpleText : ElementBase
    {
        /// <summary>
        /// 节点内的文本内容
        /// </summary>
        public string Content
        {
            get
            {
                return this.ToString ( "Content" );
            }
            set
            {
                this[ "Content" ] = value;
            }
        }
    }
}
